package c.e.b.m;

import c.e.b.c;
import c.e.b.m.l.c.a;
import c.e.b.m.l.d;
import java.util.Objects;

/* compiled from: FirebaseInstallations */
public final /* synthetic */ class b implements Runnable {
    public final d a;

    public b(d dVar) {
        this.a = dVar;
    }

    public void run() {
        d b;
        d dVar = this.a;
        Object obj = d.l;
        Objects.requireNonNull(dVar);
        synchronized (d.l) {
            c cVar = dVar.a;
            cVar.a();
            a a = a.a(cVar.a, "generatefid.lock");
            try {
                b = dVar.c.b();
                if (b.i()) {
                    String f = dVar.f(b);
                    c.e.b.m.l.c cVar2 = dVar.c;
                    c.e.b.m.l.a.b bVar = (c.e.b.m.l.a.b) b.j();
                    bVar.a = f;
                    bVar.b(a.UNREGISTERED);
                    b = bVar.a();
                    cVar2.a(b);
                }
                if (a != null) {
                    a.b();
                }
            } catch (Throwable th) {
                if (a != null) {
                    a.b();
                }
            }
        }
        dVar.i(b);
        dVar.i.execute(new c(dVar, false));
    }
}
